#include <QCoreApplication>
#include <iostream>
using namespace std;

int main(int argc, char *argv[])
{
    int A, B;
        cout<<"Vvedite bolshee chislo \n";
        cin>>A;
        cout<<"Vvedite menshee chislo \n";
        cin>>B;
        while (A - B >=  0)

            A= A - B;
            cout<<"Dlina nezanyatoy chasti otrezka= "<<A;
    QCoreApplication a(argc, argv);

    return a.exec();
}
